Skip to content

Inconsistent format in dataclasses.rst #134946

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alesolda opened this issue May 30, 2025 · 0 comments
Closed

Inconsistent format in dataclasses.rst #134946

alesolda opened this issue May 30, 2025 · 0 comments
Labels
docs Documentation in the Doc dir topic-dataclasses

Comments

@alesolda
Copy link

alesolda commented May 30, 2025

Documentation

The dataclasses.rst documentation uses inconsistent formatting for booleans. For example in the section The parameters to @dataclass are:

- ``init``: If true (the default), (...)

vs

- ``unsafe_hash``: If ``False`` (the default) (...)

Linked PRs

@alesolda alesolda added the docs Documentation in the Doc dir label May 30, 2025
alesolda added a commit to alesolda/cpython that referenced this issue May 30, 2025
Fix boolean values formatting by using double backticks
for True/False to improve consistency.

Fixes pythongh-134946
alesolda added a commit to alesolda/cpython that referenced this issue May 30, 2025
alesolda added a commit to alesolda/cpython that referenced this issue May 30, 2025
Correct boolean literals by replacing 'true' with ``True`` for accuracy and consistency.

Resolves pythongh-134946
alesolda added a commit to alesolda/cpython that referenced this issue May 30, 2025
Correct boolean literals by replacing 'true' with '``True``' for accuracy and consistency.

Resolves pythongh-134946
alesolda added a commit to alesolda/cpython that referenced this issue May 30, 2025
Correct boolean literals by replacing 'true' with '``True``' for accuracy and consistency.

Resolves pythongh-134946
alesolda added a commit to alesolda/cpython that referenced this issue May 30, 2025
Correct boolean literals by replacing 'true' with '``True``' for accuracy and consistency.

Resolves pythongh-134946
@alesolda alesolda closed this as completed Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir topic-dataclasses
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

2 participants